﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web.Admin
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_login_Click(object sender, EventArgs e)
        {
            string name=txt_name.Text;
            string pwd=txt_pass.Text;
            if (name == "admin" && pwd == "dyj")
            {
                Session["login"] = name;
                Response.Redirect("main.aspx");
            }

        }
    }
}